package 设计模式.visitor;

import lombok.AllArgsConstructor;
import lombok.Data;

//兼职员工类：具体元素类
@Data
@AllArgsConstructor
public class ParttimeEmployee implements Employee {
    private String name;
    private double hourWage;
    private int workTime;

    public void accept(Department handler) {
        handler.visit(this); //调用访问者的访问方法
    }
}

